package com.mz.mattress.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.mz.mattress.api.entity.Card;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface CardMapper extends BaseMapper<Card> {

//   and start_date &lt; now() and end_date> now()

    Page<Card> listPage(Page page,
                        @Param("merchantId") Integer merchantId,
                        @Param("state") Integer state,
                        @Param("name") String name,
                        @Param("status") Integer status);

}
